package com.liuxinlong.modules.moc.service.impl;

import com.liuxinlong.modules.moc.service.MocAnalysisService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 变更分析服务层实现
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2022年7月13日
 */
@Service
@Slf4j
public class MocAnalysisServiceImpl implements MocAnalysisService {

    @Override
    public Map<String, Object> queryMocAnalysis(Map<String, Object> queryParam) {
        Map<String,Object> resultMap = new HashMap<>();
        List<Map<String,Object>> userAnalysisList = analysisByUser();
        resultMap.put("ua",userAnalysisList);
        List<Map<String,Object>> depAnalysisList = analysisByDepartment();
        resultMap.put("da",depAnalysisList);
        List<Map<String,Object>> catAnalysisList = analysisByCategory();
        resultMap.put("ca",catAnalysisList);
        return resultMap;
    }

    private List<Map<String,Object>> analysisByUser(){
        List<Map<String,Object>> resultList = new ArrayList<>();
        return  resultList;
    }

    private List<Map<String,Object>> analysisByDepartment(){
        List<Map<String,Object>> resultList = new ArrayList<>();
        return  resultList;
    }

    private List<Map<String,Object>> analysisByCategory(){
        List<Map<String,Object>> resultList = new ArrayList<>();
        return  resultList;
    }
}
